<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div {
            width: 121px;
            height: 145px;
            border: 2px solid black;
            margin: 100px auto;
            /* 添加溢出隐藏，让溢出的不可见 */
            overflow: hidden;
        }

        /* 用伪元素 */
        div::after {
            content: '';
            display: block;
            width: 100%;
            height: 100%;
            /* background-color: red; */
            background-image: url(media/ldh.jpg);
            background-repeat: no-repeat;

            transform: rotate(180deg);
            transform-origin: left bottom;
            transition: all 0.7s;

        }

        /* 鼠标经过让他旋转回去，即为0° */
        div:hover::after {
            transform: rotate(0deg);
        }
    </style>
</head>

<body>
    <div>

    </div>
</body>

</html>